home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / lib / partman / update.d / 60basicmethods < prev    next >
Text File  |  2008-10-29  |  560b  |  35 lines

  1. #!/bin/sh
  2.  
  3. . /lib/partman/lib/base.sh
  4.  
  5. dev=$1
  6. num=$2
  7. id=$3
  8. size=$4
  9. type=$5
  10. fs=$6
  11. path=$7
  12. name=$8
  13.  
  14. cd $dev
  15.  
  16. [ -f $id/method ] || exit 0
  17. method=$(cat $id/method)
  18.  
  19. case "$method" in
  20.     keep|format)
  21.     if [ -f $id/acting_filesystem ]; then
  22.         filesystem=$(cat $id/acting_filesystem)
  23.         db_metaget partman/filesystem_short/"$filesystem" description || RET=''
  24.         printf "${RET:-$filesystem}" >$id/visual_filesystem
  25.     else
  26.         >$id/visual_filesystem
  27.     fi
  28.     if [ -f $id/mountpoint ]; then
  29.         cat $id/mountpoint >$id/visual_mountpoint
  30.     else
  31.         >$id/visual_mountpoint
  32.     fi
  33.     ;;
  34. esac
  35.